home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / DataCopy / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.0 KB  |  71 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    Release Version:    $ ODF 1 $
  3. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  4. //========================================================================================
  5.  
  6. #ifndef PART_H
  7. #define PART_H
  8.  
  9. //=======================================================================
  10. #ifndef DEFINES_K
  11. #include "Defines.k"
  12. #endif
  13.  
  14. // ----- Framework Includes -----
  15. #ifndef FWPART_H
  16. #include "FWPart.h"            // FW_CPart
  17. #endif
  18.  
  19. // ----- Foundation Layer -----
  20. #ifndef FWSTDDEF_H
  21. #include <FWStdDef.h>        // ?
  22. #endif
  23.  
  24. //=======================================================================
  25. const ODValueType    kAppleTEXTScrap = "Apple:OSType:Scrap:TEXT";
  26. const ODValueType    kAppleTEXTfile     = "Apple:OSType:FileType:TEXT";
  27.  
  28. //=======================================================================
  29. #if FW_LIB_EXPORT_PRAGMAS
  30. #pragma import on
  31. #endif
  32. class FW_CPart;
  33. class FW_CString;
  34. class FW_CMenuBar;
  35. class FW_CMenuEvent;
  36. class FW_CPresentation;
  37. #if FW_LIB_EXPORT_PRAGMAS
  38. #pragma import off
  39. #endif
  40.  
  41. class CDataCopyContent;
  42.  
  43. //=======================================================================
  44. class CDataCopyPart : public FW_CPart {
  45. public:
  46.     FW_DECLARE_AUTO(CDataCopyPart)
  47.     
  48.                         CDataCopyPart(ODPart* odPart);
  49.     virtual             ~CDataCopyPart();
  50. // new members
  51.     virtual void         MyInvalidatePresentation(Environment* ev);
  52.     virtual void         MyInvalidatePresentation(Environment* ev, FW_CRect& rect);
  53. // overrides
  54. protected:
  55.     virtual FW_CContent* NewPartContent(Environment* ev);
  56.     virtual void         Initialize(Environment* ev);
  57.     virtual FW_CFrame*    NewFrame(Environment* ev,
  58.                                  ODFrame* odFrame,
  59.                                  FW_CPresentation* presentation,
  60.                                  FW_Boolean fromStorage);
  61.     virtual FW_Boolean    DoMenu(Environment* ev,
  62.                                const FW_CMenuEvent& theMenuEvent);
  63. // new members
  64. private:
  65.     FW_CPresentation*    fPresentation;
  66.     CDataCopyContent*        fPartContent;
  67. };
  68.  
  69. //=======================================================================
  70. #endif
  71.